import request from '@/utils/request'

const post = {
  list(params){
    return request.get("/system/post/list",{
      params
    })
  },
  add(data){
    return request.post("/system/post",data)
  },
  edit(data){
    return request.put("/system/post",data)
  },
  get(id){
    return request.get(`/system/post/${id}`)
  },
  del(id){
    return request.delete(`/system/post/${id}`)
  },
}

export default post;
